export default async function (opt) {
  opt.confirmColor ='#3f5def'
  const [, { cancel }] = await uni.showModal(opt)
  if (cancel) {
    return Promise.reject('取消')
  } else {
    return Promise.resolve()
  }
}
